package com.sunsy.authserver.beans.po;

import java.util.Date;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import org.yaml.snakeyaml.events.Event;

/**
 * (AccessToken)表实体类
 *
 * @author makejava
 * @since 2021-07-20 14:34:06
 */
@Data
@TableName(value = "access_token")
public class AccessToken implements Serializable {

    private static final long serialVersionUID = -30390595702653219L;

    private String accessToken;

    private Long userId;

    private Long clientId;

    @TableField(fill = FieldFill.INSERT)
    private String createdBy;

    @TableField(fill = FieldFill.INSERT)
    private Date createdTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updatedTime;

    private String refreshToken;

    @TableId(type = IdType.AUTO)
    private Integer id;


}